﻿using AppEszköz.Config;
namespace AppEszköz.ErrorControl
{
    internal sealed class ErrorSettings
    {
        public static bool LogErrors
        {
            get
            {
                return ConfigHelper.GetConfigBool("Error.LogErrors");
            }
        }

        public static string Writer
        {
            get
            {
                return ConfigHelper.GetConfig("Error.Writer");
            }
        }

        public static string SqlConnectionString
        {
            get
            {
                return ConfigHelper.GetConfig("Error.SqlConnectionString");
            }
        }

        public static string File
        {
            get
            {
                return ConfigHelper.GetConfig("Error.File");
            }
        }

        public static int FileMaxKBytes
        {
            get
            {
                return int.Parse(ConfigHelper.GetConfig("Error.FileMaxKBytes"));
            }
        }

        private ErrorSettings()
        {
        }
    }
}
